<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<c:set var="name" value="黄彪"  scope="request" /><!-- 将值保存到request范围内的name变量内 -->

<c:out value="name值为:${name}"/><!-- 将保存的name值输出 -->

<!-- 获取javaBean对象 -->
<jsp:useBean id="user" class="JSPBasicGrammar.JSTLTagLib08.expression.C_out_set_remove_catch.User" scope="request"></jsp:useBean>

<!-- 将标签体放到user对象中的name属性里 -->
<c:set target="${user}" property="name">胡歌</c:set>

<!-- 获取user对象的name值 -->
<c:out value="类User里面的name属性的值为:${user.name}"></c:out>

<!-- 将变量name从request作用域中删除 -->
<c:remove var="name" scope="request"/>
<c:out value="name值:${empty name?'null' :'为null'}"/>

</body>
</html>